package scaffold;

import java.awt.geom.Point2D;

/**
 *
 * @author Mikael Köhlmyr | mikael@kohlmyr.com | http://www.kmyr.net
 */
public class Vertex extends Point2D.Double{
        private double z;

        public Vertex(double x, double y, double z) {
                this.x = x;
                this.y = y;
                this.z = z;
        }
        
        public Vertex(double x, double y){
                this.x = x;
                this.y = y;
                this.z = 0.0;
        }
        
        public Vertex(){
                this(0.0, 0.0, 0.0);
        }

        public void setX(double x) {
                this.x = x;
        }

        public void setY(double y) {
                this.y = y;
        }

        public double getZ() {
                return this.z;
        }

        public void setZ(double z) {
                this.z = z;
        }
}
